<template>
    <div>
        <h1 class="bgc">{{msg}}</h1>
        <h2 >学校名称：{{name | mySlice}}</h2>
        <h2>学校地址：{{address}}</h2>
        <input type="text" v-fbind:value='address'>
        <button @click="test">点击测试hello</button>
    </div>
</template>


<script>
    export default{
       name:'School',
       data() {
            return {
                msg:'欢迎你~学生',
                name:'深职院ofgakgfiagld',
                address:'深圳'         
            }
        },
        methods: {
            test(){
                this.hello()
            }
        },

             
   }
    

</script>
<style>
    .bgc{
        background-color: #ff6700;
    }
</style>